import React from 'react';
import '../css/modal.css';

const Modal = ({ isVisible, onClose, transactionHash }) => {
  if (!isVisible) return null;

  return (
    <div className="modal-overlay">
      <div className="modal-container">
        <h2>请储存交易哈希</h2>
        <p>{transactionHash}</p>
        <button onClick={onClose} className="modal-button">
          储存
        </button>
      </div>
    </div>
  );
};

export default Modal;
